<footer class="bs-docs-footer">
  <div class="container">				
		<p>Designed by <a href="#" target="_blank">sunbinovic@163.com</a></p><p>&copy; 2012-<?php echo date('Y',time()); ?> xxx company </p>
	</div> <!-- /container -->
</footer>
<!--
<script  type="text/javascript" src="__PUBLIC__/etc/gotop/gotop.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/etc/gotop/gotop.css" media="all"/>
-->
<!--正在加载部分-->
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal_loading" style='display: none' id='loading'>
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal" id="myModal_loading" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" style='padding-top:100px'>
    <div class="modal-content">
      <div class="modal-header">
    	<button type="button" class="close" data-dismiss="modal" aria-label="Close" id='loading_cancel'><span aria-hidden="true">&times;</span></button>
    	<h4 class="modal-title">执行中...</h4>
 	  </div>
      <div class="modal-body" style='height:100px;padding-top: 40px'>
      	
        <div class="progress">
    		  <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
    		    <span class="sr-only">####</span>
    		  </div>
    		</div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" id='close_loading'>关闭</button>
        
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
function loading(){
  $('#loading').trigger('click');
}
function closeloading(){
  $('#close_loading').trigger('click');
}

</script>

<!--#################-->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal_msg" style='display: none' id='msg'>
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal" id="myModal_msg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" style='padding-top:100px'>
    <div class="modal-content">
      <div class="modal-header">
      <button type="button" class="close close_msg" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <h4 class="modal-title">消息</h4>
    </div>
      <div class="modal-body" id='msgcontent'>
        
        
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default close_msg" data-dismiss="modal" >关闭</button>
        
      </div>
    </div>
  </div>
</div>

<script>
var close_flag=0;//0的时候关闭就是关闭没有废话，1的时候关闭就是先关闭再刷新
function msg(str,type){
  $('#msgcontent').html(str);
  $('#msg').trigger('click');
  if(type){
    close_flag=type;
  }else{
    close_flag=0;
  }
  
}
$(function(){
  $('.close_msg').click(function(){
    if(close_flag==1){
      window.location.reload();
    }else if(close_flag==2){
      window.location.href=document.referrer;
    }
  })
})
</script>